<template>
  <div>
    <van-tabbar v-model="active">
      <van-tabbar-item icon="home-o" to="/home">首页</van-tabbar-item>
      <van-tabbar-item icon="notes-o" to="/cate">分类</van-tabbar-item>
      <van-tabbar-item icon="balance-o">值得买</van-tabbar-item>
      <van-tabbar-item icon="cart-o" badge="5" to="/shop">购物车</van-tabbar-item>
      <van-tabbar-item icon="user-o" to="/my">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: "MyTabbar",
  props: {
    //属性
    currunt: {
      type: Number,
      default: 0,
    },
  },
  data() {
    return {
      active: this.currunt,
    };
  },
};
</script>